* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* 容器 */
.login-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 420px;
    padding: 40px 35px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* 标题 */
.header {
    margin-bottom: 30px;
}

.logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #282828 0%, #55cfcf 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 24px;
}

h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #502c35;
}

.subtitle {
    color: #7f8c8d;
    font-size: 16px;
}

/* 表单部分 */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
}

.input-container {
    position: relative;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #74cb11;
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
}

/* 单选按钮 */
.radio-inputs {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    border-radius: 4px;
    background-color: #f7f2f2f6;
    box-sizing: border-box;
    padding: 0.25rem;
    width: 340px;
    font-size: 14px;
    height: 46px;
    transition: clip-path 0.3s ease;
}

.radio-inputs .radio {
    flex: 1 1 auto;
    text-align: center;
}

.radio-inputs .radio input {
    display: none;
}

.radio-inputs .radio .radio-item {
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    padding: 0.5rem 0;
    color: #080705;
    transition: background-color 0.5s ease, font-weight 0.5s ease;
}

.radio-inputs input:checked ~ .radio-item {
    background-color: #4d4a45;
    font-weight: 600;
    color: #fff;
}

/* 按钮 */
.box-button {
    cursor: pointer;
    border: 4px solid black;
    background-color: grey;
    padding-bottom: 10px;
    transition: 0.1s ease-in-out;
    user-select: none;
}

.button {
    background-color: #dddddd;
    border: 4px solid #fff;
    padding: 3px 8px;
}

.button span {
    font-size: 1.2em;
    letter-spacing: 1px;
}

.box-button:active {
    padding: 0;
    margin-bottom: 10px;
    transform: translateY(10px);
}

/* 装饰 */
.decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.05) 0%, rgba(37, 117, 252, 0.05) 100%);
    z-index: -1;
}

.decoration-1 {
    top: -100px;
    right: -100px;
}

.decoration-2 {
    bottom: -100px;
    left: -100px;
}

/* 响应式 */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 25px;
    }

    h1 {
        font-size: 24px;
    }
}

/* 消息框的过渡效果 */
#messageBox {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* 消息框消失时的样式 */
#messageBox.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
}

